import Vue from 'vue'
import Router from 'vue-router'
import personal from '@/components/personal.vue'
import order from '../components/order.vue'
import award from '../components/award.vue'
import orderdetail from '../components/orderdetail.vue'
import vip from '../components/vip.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'personal',
      component: personal,
      children:[
      {
        path:"",
        component:order
      },
      {
        path:"/award",
        component:award
      },
      {
        path:"vip",
        component:vip
      }
    ]
    },
    {
      path:'/detail',
      name:orderdetail,
      component:orderdetail
    }
  ]
})
